package com.xhui.reggie;

// import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;
// @Slf4j 控制台日志打印对象
@SpringBootApplication
@ServletComponentScan
/**
 * 在SpringBootApplication上使用@ServletComponentScan注解后，
 * Servlet（控制器）、Filter（过滤器）、Listener（监听器）可以直接通过@WebServlet、@WebFilter、@WebListener注解自动注册到Spring容器中，无需其他代码。
 */
@MapperScan({"com.xhui.reggie.mapper"})
@EnableTransactionManagement // 开启事务管理
// @EnableCreateCacheAnnotation // 启用jetcache缓存供应商
@EnableCaching // 开启spring cache 缓存注解
public class ReggieTakeout01Application {

    public static void main(String[] args) {

        SpringApplication.run(ReggieTakeout01Application.class, args);
        // log.info("reggie project run successfully");
    }

}
